﻿.search header[role=banner] .titlearea {
    -ms-grid-columns: auto 20px 1fr 20px;
    display: -ms-grid;
}

    .search header[role=banner] .titlearea .pagetitle {
        width: auto;
    }

    .search header[role=banner] .titlearea .pagesubtitle {
        -ms-grid-column: 3;
        margin-top: 32px;
    }

.search section[role=main] {
    -ms-grid-columns: 1fr;
    -ms-grid-rows: 180px 1fr;
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    display: -ms-grid;
}

    .search section[role=main] .resultsmessage {
        margin-left: 120px;
        margin-right: 120px;
        margin-top: 193px;
    }

    .search section[role=main] .filterarea {
        -ms-font-feature-settings: "case" 1;
        -ms-grid-row: 1;
    }

        .search section[role=main] .filterarea .filterbar {
            height: auto;
            list-style-type: none;
            margin-left: 60px;
            margin-right: 60px;
            margin-top: 133px;
            max-width: calc(100% - 120px);
        }

            .search section[role=main] .filterarea .filterbar li {
                display: inline;
                margin-left: 20px;
                margin-right: 20px;
                margin-top: 5px;
                opacity: 0.6;
            }

                .search section[role=main] .filterarea .filterbar li.highlight, .search section[role=main] .filterarea .filterbar li:hover {
                    opacity: 1.00;
                }

        .search section[role=main] .filterarea .filterselect {
            display: none;
        }

    .search section[role=main] .resultslist {
        -ms-grid-row: 1;
        -ms-grid-row-span: 2;
        height: 100%;
        position: relative;
        width: 100%;
        z-index: 0;
    }

        .search section[role=main] .resultslist .win-horizontal.win-viewport .win-surface {
            margin-bottom: 60px;
            margin-left: 90px;
            margin-right: 90px;
            margin-top: 198px;
        }

        .search section[role=main] .resultslist .win-container {
            margin-bottom: 10px;
            margin-left: 23px;
            margin-right: 23px;
        }

.currency-template-tile {
    background-color: #74703F;
    text-align: center;
    font-family: 'Segoe UI Semilight';
    width: 260px;
    height: 154px;
    display: -ms-grid;
    -ms-grid-columns: 20px 64px 20px 116px 20px;
    -ms-grid-rows: 20px 30px 20px 64px 20px;
}

.currency-header {
    -ms-grid-column: 2;
    -ms-grid-row: 2;
    width: 64px;
    height: 30px;
    font-size: 20px;
}

.currency-flag {
    -ms-grid-column: 2;
    -ms-grid-row: 4;
}

.currency-data-container {
    -ms-grid-column: 4;
    -ms-grid-row: 2;
    -ms-grid-row-span: 3;
    display: -ms-inline-grid;
    -ms-grid-rows: 15px 5px 14px 5px 30px 5px 15px 5px 20px;
    -ms-grid-columns: 51px 5px 80px;
}

.currency-rate-tag {
    -ms-grid-column: 1;
    -ms-grid-column-span:2;
    -ms-grid-row: 1;
    font-size: 15px;
}

.currency-rate {
    -ms-grid-column: 3;
    -ms-grid-row: 5;
    font-size: 30px;
}

.currency-invert-tag {
    -ms-grid-column: 1;
    -ms-grid-row: 7;
    font-size: 15px;
}

.currency-amount {
    -ms-grid-column: 1;
    -ms-grid-row: 3;
    font-size: 14px;
}

.currency-invert-rate {
    -ms-grid-column: 3;
    -ms-grid-row: 9;
    font-size: 20px;
}

@media screen and (-ms-view-state: snapped) {
    .search header[role=banner] .titlearea {
        -ms-grid-columns: 1fr 20px;
    }

        .search header[role=banner] .titlearea .pagetitle {
            margin-top: 0;
        }

    .search section[role=main] {
        -ms-grid-columns: 1fr;
        -ms-grid-rows: 30px 1fr;
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        display: -ms-grid;
    }

        .search section[role=main] .resultsmessage {
            margin-left: 20px;
            margin-right: 20px;
            margin-top: 36px;
        }

        .search section[role=main] .filterarea .filterbar {
            display: none;
        }

        .search section[role=main] .filterarea .filterselect {
            display: inline;
            margin-left: 20px;
            margin-right: 20px;
            margin-top: 2px;
            max-width: calc(100% - 38px);
        }

        .search section[role=main] .resultslist {
            height: calc(100% - 30px);
            -ms-grid-row: 2;
            -ms-grid-row-span: 1;
            margin-top: 30px;
        }

            .search section[role=main] .resultslist .win-vertical.win-viewport .win-surface {
                margin-bottom: 60px;
                margin-top: 18px;
            }

            .search section[role=main] .resultslist .win-container {
                margin-left: 13px;
                margin-right: 22px;
            }

            .search section[role=main] .resultslist.win-rtl .win-container {
                margin-left: 22px;
                margin-right: 13px;
            }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .search section[role=main] .filterarea .filterbar {
        margin-left: 40px;
        margin-right: 40px;
    }

    .search section[role=main] .resultsmessage {
        margin-left: 100px;
        margin-right: 100px;
    }

    .search section[role=main] .resultslist .win-horizontal.win-viewport .win-surface {
        margin-left: 70px;
        margin-right: 70px;
    }
}
